<?php
namespace app\common\model;

class MemberDetail extends \think\Model 
{
    protected $autoWriteTimestamp = true;
    /**
     * 关联 member表
     * @return $this
     */
    /*
    public function member()
    {
        return $this->belongsTo('Member', 'member_id')->setEagerlyType(1);
    }*/
    
    public function setPasswordAttr($value)
    {
        return preg_match("/^(###)/",$value)?$value:st_password($value);
    }
    public function setDeleteTimeAttr($value)
    {
        return empty($value)?0:$value;
    }
}
